# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-recurring-ical-events
pkgver=2.2.1
pkgrel=1
pkgdesc="Python library for recurrence of ical events based on icalendar"
url="https://github.com/niccokunzmann/python-recurring-ical-events"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-icalendar py3-tz py3-tzdata py3-x-wr-timezone"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/niccokunzmann/python-recurring-ical-events/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/python-recurring-ical-events-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	# Disable unnecessary test that adds another dependency.
	pytest -v \
		--ignore test/test_readme.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
1bd6337b5b8670b2c587d54eae26291c381adba76c38e21a937db8a16480d9b4c6eaddda6660fd0c345f67e38ed4f7cfe9e528ecce3686bce9659f4ef30d278c  py3-recurring-ical-events-2.2.1.tar.gz
"
